
import { ref, reactive, computed } from 'vue'

export default function () {

    let num = ref(0)

    let tennum = computed(() => {
        return 10 * num.value
    })

    // let tennum = computed({
    //   get(){
    //     return 10 * num.value
    //   },
    //   set(){

    //   }
    // })

    function addnum() {
        num.value++;
    }

    return {num,tennum,addnum}
}


